﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第六题
//BC8 十六进制转十进制
//https://www.nowcoder.com/practice/33e148570d5c4e728116e2f861638c9c?tpId=107&tqId=33289&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int a = 0xABCDEF;
    printf("%15d", a);
    return 0;
}

//不能使用如下代码
//printf("%15d", "ABCDEF");
//实际上常量字符串在这里传给printf是地址，这是首字母的地址